package com.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "lookup_type")
public class LookupType {

	public static final LookupType APARTMENT_CONSTRUCTSTATUS = new LookupType(
			1L);
	public static final LookupType APARTMENT_RESERVESTATUS = new LookupType(2L);
	public static final LookupType APARTMENT_TAXESSSTATUS = new LookupType(3L);

	public static final LookupType PAYMENT_STATUS = new LookupType(4L);
//	public static final LookupType PAYMENT_FIRSTPAYMENT = new LookupType(5L);
	@Id
	@Column(name = "recid", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long recid;

	@Column(name = "name")
	private String name;

	// -----------------------constructor------------------------//

	public LookupType() {
	}

	@Override
	public String toString() {
		return "LookupType [recid=" + recid + ", name=" + name + "]";
	}

	public LookupType(Long id) {
		this.recid = id;
	}

	public LookupType(Long recid, String name) {
		super();
		this.recid = recid;
		this.name = name;
	}

	// -------------------------get.-set.-------------------------//

	public Long getRecid() {
		return this.recid;
	}

	public void setRecid(Long recid) {
		this.recid = recid;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

}
